<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of blogmodel
 *
 * @author alex
 */
class Blog_model extends CI_Model {

    var $title = '';
    var $content = '';

    function __construct() {
        parent::__construct();
    }

    function get_ten_accounts() {
//        $this->load->database();
        $this->db->select('username,password,role');
        $this->db->from('account');
        $query = $this->db->get();
//        var_dump($query);
        return $query->result();
    }

}
?>
